package com.server;

import com.server.bean.UserBean;
import com.server.mapper.LoginMapper;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import tk.mybatis.mapper.entity.Example;

@RestController
@SpringBootApplication
public class TestServerApplication {

    @Autowired
    LoginMapper loginMapper;


    @RequestMapping("/")
    public List<UserBean> hello() {
        return loginMapper.selectAll();
    }

    public static void main(String[] args) {
        SpringApplication.run(TestServerApplication.class, args);
    }

}
